<?php
$this->load->model('public_model');
$title = (empty($title) ? "" : $title. " - ") . SITE_SLOGAN;
$meta_description = "";
$meta_keywords = "";


?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="ko" xmlns="http://www.w3.org/1999/xhtml" lang="ko">
<head>
	<title><?php echo $title;?></title>
	<meta name="description" content="<?=htmlentities($meta_description)?>" />
	<meta name="keywords" content="<?=mysql_real_escape_string($meta_keywords)?>"/>
	
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=9" >
	<link href="<?php echo TEMPLATE_CSS_PATH ;?>/common.css" rel="stylesheet" type="text/css" />
    <link href="<?php echo TEMPLATE_CSS_PATH ;?>/header.css" rel="stylesheet" type="text/css" />
    <link href="<?php echo TEMPLATE_CSS_PATH ;?>/navbar.css" rel="stylesheet" type="text/css" />
    <link href="<?php echo TEMPLATE_CSS_PATH ;?>/footer.css" rel="stylesheet" type="text/css" />
    <link href="<?php echo TEMPLATE_CSS_PATH ;?>/login.css" rel="stylesheet" type="text/css" />
    <link href="<?php echo TEMPLATE_CSS_PATH ;?>/paging.css" rel="stylesheet" type="text/css" />
    <link href="<?php echo TEMPLATE_CSS_PATH ;?>/shoppingcart.css" rel="stylesheet" type="text/css" />
    <link href="<?php echo TEMPLATE_CSS_PATH ;?>/deal.css" rel="stylesheet" type="text/css" />
	<link href="<?=base_url()?>css/vzoom.css" rel="stylesheet" type="text/css" />
	<link href="<?=base_url()?>css/apprise.css" rel="stylesheet" type="text/css" />	
	<link href="<?=base_url()?>css/datePicker.css" rel="stylesheet" type="text/css" />
	<link href="<?=base_url()?>css/jquery-ui-1.8.8.custom.css" rel="stylesheet" type="text/css" />
	<link href="<?=base_url()?>css/stickytooltip.css" rel="stylesheet" type="text/css" />
	<link href="<?=base_url()?>css/jquery.multiSelect.css" rel="stylesheet" type="text/css" />
	
	<link href="<?php echo TEMPLATE_CSS_PATH ;?>/listnav.css" rel="stylesheet" type="text/css" />
	<link href="<?=base_url()?>js/uploadify/uploadify.css" rel="stylesheet"  type="text/css" />
	
	<!-- JS Library-->
	<script src="<?=base_url()?>js/library/jquery.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/library/ajax.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/library/json2.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/library/vzoom.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/library/javascript.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/library/jquery.json-2.2.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/library/jquery.ui.core.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/library/jquery.ui.widget.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/library/jquery.ui.autocomplete.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/library/jquery.ui.dialog.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/library/jquery.ui.position.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/library/jquery.ui.tabs.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="<?=base_url()?>js/library/jquery.countdown.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="<?=base_url()?>js/library/date.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/library/vzoom.js" type="text/javascript" charset="utf-8"></script>	
	<script src="<?=base_url()?>js/library/ajaxfileupload.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/library/jquery.form.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/library/jquery.blockUI.js" type="text/javascript" charset="utf-8"></script>
    <script src="<?=base_url()?>js/library/jquery.creditCardValidator.js" type="text/javascript" charset="utf-8"></script>
    <script src="<?=base_url()?>js/library/jquery.numeric.js" type="text/javascript" charset="utf-8"></script>
    <script src="<?=base_url()?>js/library/jquery.validate.js" type="text/javascript" charset="utf-8"></script>
	<!--END JS library-->
	
    <script src="<?=base_url()?>js/deal.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/lg_script.js" type="text/javascript" charset="utf-8"></script>
    <script src="<?=base_url()?>js/common.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/product.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/shoppingcart.js" type="text/javascript" charset="utf-8"></script>
	
	
<script type="text/javascript">
/*
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-2965081-21']);
  _gaq.push(['_trackPageview']);
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
*/
</script>
</head>

<body>
<?php $this->load->library('cart'); ?>	<!-- start main div-->
	<?php include('includes/header.php');?>	
    <div id="BodyWrap2">
	
	
	<!-- start main content div -->
	
	<!-- start user menu -->
	<?= $mainmenu ?>
	<!-- end user menu -->
	
	<div id="ContentWrap">
		
	<!-- content -->
		<div id="Content">
	<!-- start top -->
			<?= isset($contents)?$contents:null ?>
		</div>
		<!-- content end -->
	</div>
	<!-- end main content div -->
    </div>
    
    <!-- start footer div -->
    <?php include('includes/footer.php');?>
    <!-- end footer div -->
	


</body>
</html>
